-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use more strict rules for identifiers #25
Conversation
+1 |
2 similar comments
+1 |
+1 |
So I've finally run into the messages which lead us to have the "less" strict regex. For example, sensor_msgs/CameraInfo: http://docs.ros.org/api/sensor_msgs/html/msg/CameraInfo.html It has fields called If we decide to keep this enforcement then I'll need help figuring out how to change CameraInfo correctly. At the very least I think changing CameraInfo in this way will require iteration with the community and I'm sure it will make sense to them why we are doing this. I have to admit that "To match the style" might not be justification enough, even for me. |
For the fields in the |
That might be the best solution in this case. However, +0 to changing |
From discussion in meeting we'll go ahead with this and see how painful the conversions are with this policy in place. |
For me to do, update messages that violate this stricter policy ( |
Feedback is that the benefit from consistent style is outweighed by the cost of having to update existing message definitions and code using them. So we'll provide a linter that you can opt out of using. Open question: how should we resolve existing violations of this style in widely used messages (of which CameraInfo is one)? @esteve to reply to the email thread about this. |
For now, we'll keep the strict version of the generators, and we'll update ROS2 versions of CameraInfo and DisparityImage to follow the new style, just lower-casing them. In the future, we can consider adding a feature to the generators to make them less strict, if there's enough demand for it. Also, in the future we can consider proposals for changing those (and other) field names to something more descriptive. @wjwwood to update the messages. Then, this PR is ready to merge. Then, @dirk-thomas to update the bridge to handle this new mapping. |
Thread, starting with @esteve's message: https://groups.google.com/d/msg/ros-sig-ng-ros/YAyfgrvUvs0/ULthxTF51GwJ |
Given that several members of the ROS community have expressed their concerns about this proposal, I think we should close this PR and work on the linter instead. |
I've opened the pr to change the offending messages: ros2/common_interfaces#6 |
I will change the branch name in my pr and run CI to double check before merging. |
I create a duplicate branch for ros2/common_interfaces#6 to match this one's branch name and queued a CI for it: http://ci.ros2.org/job/ros2_batch_ci_linux/67/ |
5c22f0c
to
2e03461
Compare
I rebased this branch and started a new CI job: http://ci.ros2.org/job/ros2_batch_ci_linux/68/ |
The job passed, but with two failing tests. The tests are just style related though: http://ci.ros2.org/job/ros2_batch_ci_linux/68/testReport/ After that is fixed up, I think this is ready to go. |
2e03461
to
3985432
Compare
I updated the style in dc91c2f |
use more strict rules for identifiers
The patch enables the stricter rules (instead of using the relaxed one to be able to read all ROS 1 messages). It also makes the regular expressions even more strict to match the spec from the article.
Please review.